package com.example.volleytest.activity;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;
import com.example.volleytest.adapter.AvatarsAdapter;

/**
 * Created with IntelliJ IDEA.
 * User: Kvest
 * Date: 14.07.13
 * Time: 10:58
 * To change this template use File | Settings | File Templates.
 */
public class AvatarsActivity extends Activity {
    private AvatarsAdapter avatarsAdapter;
    @Override
    public void onCreate(Bundle savedState) {
        super.onCreate(savedState);

        ListView listView = new ListView(this);
        avatarsAdapter = new AvatarsAdapter(getLayoutInflater());
        listView.setAdapter(avatarsAdapter);
        setContentView(listView);
    }

    @Override
    public void onStop() {
        super.onStop();

        avatarsAdapter.cancelRequests();
    }
}
